<!DOCTYPE html>
<html>
<head>
  	<title>分布式任务调度平台</title>
  	<#import "../common/common.macro.ftl" as netCommon>
	<@netCommon.commonStyle />
	<!-- DataTables -->
  	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.css">
  	<!-- daterangepicker -->
  	<link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/daterangepicker/daterangepicker.css">
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["adminlte_settings"]?exists && "off" == cookieMap["adminlte_settings"].value >sidebar-collapse</#if> ">
<div class="wrapper">
	<!-- header -->
	<@netCommon.commonHeader />
	<!-- left -->
	<@netCommon.commonLeft "env" />

	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>告警配置</h1>
		</section>

		<!-- Main content -->
	    <section class="content">

			<div class="row">
				<div class="col-xs-12">
					<div class="box">
                        <div class="box-header">
                            <h3 class="box-title">告警配置</h3>&nbsp;&nbsp;
                        </div>

                        <#if alarmConfigBean?exists>
                        <div class="modal-body">
                            <form class="form-horizontal form" id="alarm_form" role="form" >
                                <input type="hidden" name="objectId" value="${alarmConfigBean.objectId}" >
                                <div class="form-group">
                                    <label for="lastname" class="col-sm-2 control-label">告警名称<font color="red">*</font></label>
                                    <div class="col-sm-10"><input type="text" class="form-control" name="alarmName" value="${alarmConfigBean.alarmName}" placeholder="请输入告警名称" maxlength="50" ></div>
                                </div>

                                <div class="form-group">
                                    <label for="firstname" class="col-sm-2 control-label">告警类型</label>
                                    <div class="col-sm-10">
                                        <select class="form-control" name="alarmType" value="${alarmConfigBean.alarmType}">
                                            <option value="0" >任务</option>
                                            <option value="1" >系统</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="lastname" class="col-sm-2 control-label">每次短信间隔时间（分钟）<font color="red">*</font></label>
                                    <div class="col-sm-10"><input type="text" class="form-control" name="smsIntervalTime" value="${alarmConfigBean.smsIntervalTime}" placeholder="请输入每次短信间隔时间（分钟）" maxlength="50" ></div>
                                </div>

                                <div class="form-group">
                                    <label for="lastname" class="col-sm-2 control-label">每次邮件间隔时间（分钟）<font color="red">*</font></label>
                                    <div class="col-sm-10"><input type="text" class="form-control" name="emailIntervalTime" value="${alarmConfigBean.emailIntervalTime}" placeholder="请输入每次邮件间隔时间（分钟）" maxlength="50" ></div>
                                </div>


                                <div class="form-group">
                                    <label for="lastname" class="col-sm-2 control-label">描述信息</label>
                                    <div class="col-sm-10">
                                        <textarea class="textarea" name="description" value="" maxlength="2000" value="${alarmConfigBean.description}" placeholder="请输入描述信息" style="width: 100%; height: 100px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="firstname" class="col-sm-2 control-label">状态</label>
                                    <div class="col-sm-10">
                                        <select class="form-control" name="status" value="${alarmConfigBean.status}">
                                            <option value="0" >启用</option>
                                            <option value="1" >禁用</option>
                                        </select>
                                    </div>
                                </div>

                                <hr>
                                <div class="form-group">
                                    <div class="col-sm-offset-3 col-sm-6">
                                        <button type="button" class="btn btn-primary config">保存</button>
                                        <#--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
                                    </div>
                                </div>
                            </form>
                        </div>
                        </#if>
					</div>
				</div>
			</div>
	    </section>
	</div>

	<!-- footer -->
	<@netCommon.commonFooter />
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="${request.contextPath}/static/js/alarm.manage.js"></script>
</body>
</html>
